﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using imaginecup.information;
using imaginecup.objectManager;
using imaginecup.util;
using Microsoft.Xna.Framework;

namespace Imaginecup.gameState.malaria.component
{
    public abstract class BaseEntityComponent : MalariaStateBaseComponent , ICmpEntity
    {
        protected EntityInfo m_Info;

        public BaseEntityComponent(GObjectID a_GID, ObjectManager ObjMan, SComponentTypeID componentTypeID)
            : base(a_GID, ObjMan, componentTypeID)
        {
        
        }
        

        //오브젝트 ID를 이용하여 Entity정보를 받아온다.
        public override ICmpEntity GetEntity()
        {
            return this;
        }

        
        public virtual Object GetEntityInfo()
        {
            return m_Info;
        }

        public virtual void SetEntityInfo(Object a_Info)
        {
            m_Info = (EntityInfo)a_Info;
        }

        public virtual void Update(GameTime gameTime){}

    }
}
